import QRCode from 'qrcode.react'
import { ReactNode } from 'react'

interface QRConfig {
  scanLogin: { code: string; tip?: string | ReactNode }
}

const LoginByQRCode = (props: QRConfig) => {
  return <QRCode value={props.scanLogin.code} size={160} />
}

export default LoginByQRCode
